package com.web.mapper;

import com.web.entity.HealthKnow;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HealthKnowMapper {

    //增加健康知识
    void add(HealthKnow healthKnow);

    //根据id查询健康知识
    HealthKnow findById(int id);

    //根据id删除健康知识
    void deleteById(int id);

    //更新健康知识
    void update(HealthKnow healthKnow);

    //查询所有健康知识
    List<HealthKnow> findAll();
    List<HealthKnow> findByName(String name);

}
